﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace YTSK
{
    public partial class FrmVouchCode : Form
    {
        public string cCode = "";
        public FrmVouchCode()
        {
            InitializeComponent();
        }

        private void btLogin_Click(object sender, EventArgs e)
        {
            cCode = this.textBox1.Text.Trim();
            if (cCode.Length == 0)
            { MessageBox.Show("请输入号码，如3812399"); return; }
            this.Hide();
        }

        private void btCancel_Click(object sender, EventArgs e)
        {
            cCode = "";
            this.Hide();
        }


        private void textBox1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            { cCode = this.textBox1.Text; this.Hide(); }
        }
    }
}
